<?php
include_once("../../../config.php");

$member=$_REQUEST['Authorization'];


//访问就直接输出推荐的文章
$member_group_tag=select_lines_all_items($table_prefix."member_group","","member_nid = '$member'","","");

$group_tag_nid_list=transform_2darray_in_1darray_number_as_key($member_group_tag,"group_nid");
$group_tag_nid_list_str=implode("','",$group_tag_nid_list);
$group_tag_name_list=select_lines_all_items($table_prefix."group","","nid in ('".$group_tag_nid_list_str."')","");
$group_tag_name_list_1d=transform_2darray_in_1darray_with_new_key($group_tag_name_list,"nid","name");




foreach ($member_group_tag as $k=>$v)
{
    $member_group_tag[$k]['name']=$group_tag_name_list_1d[$v['group_nid']];
}

$data          = $member_group_tag;
$arr['status'] = 200;
$arr['info']   = $data;
die(json_encode($arr));
?>